package com.woniuxy.test04;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author author
 * @Create 2023-09-15 9:46
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
//标记接口
public class Student implements Serializable {

    private static final long serialVersionUID = 6695899067010218527L;
    private int sid;
    private String sname;
    private int age;
    private String email;
    private String address;

}

@NoArgsConstructor
@AllArgsConstructor
@Data
class Aaa implements Serializable{
    private int aid;
    private String aname;
    private transient Teacher teacher;
}


@NoArgsConstructor
@AllArgsConstructor
@Data
class Teacher {
    private int tid;
    private String tname;
}
